<!DOCTYPE html SYSTEM "http://www.thymeleaf.org/dtd/xhtml1-strict-thymeleaf-4.dtd">
<html
        xmlns="http://www.w3.org/1999/xhtml"
        xmlns:th="http://www.thymeleaf.org"
>
<head th:include="common/common :: jscss">
    <title>试点配置/渠道配置</title>
</head>
<body>
<div class="layui-fluid">

    <blockquote class="layui-crumb">
        试点配置/渠道配置
    </blockquote>

    <div class="layui-card">

        <div class="layui-card-body">
            <form method="POST"
                  th:action="${type == 1 ? '/pilot/channel/price/addEditView.action' : '/pilot/city/toEdit.action'}"
                  class="layui-form" lay-filter="zmn-form">

                <div class="layui-form-item">
                    <label class="layui-form-label layui-form-required">试点类型</label>
                    <div class="layui-input-block" style="width: 50%;">
                        <select name="type" id="type" lay-verify="required" lay-search>
                            <option value="">请选择</option>
                            <option th:each="type:${typeList}" th:value="${type.key}"
                                    th:text="${type.value}"/>
                        </select>
                    </div>
                </div>

                <div class="layui-form-item layui-layout-admin">
                    <div class="layui-input-block">
                        <div class="layui-footer" style="left: 0;">
                            <button class="layui-btn" lay-submit="" lay-filter="zmn-form-submit">下一步</button>
                            <button class="layui-btn layui-btn-primary"
                                    onclick="zmnLayUtil.closeThisTabs()">
                                取消
                            </button>
                        </div>
                    </div>
                </div>

            </form>
        </div>
    </div>

</div>
<script type="text/javascript" th:inline="javascript">
    layui.config({
        base: "/static/lay/"
    }).extend({
        index: "lib/index"
    }).use(['index', 'form'], function () {
        let $ = layui.$;
        let form = layui.form;
        form.render(null, "zmn-form");
    });
</script>
</body>
</html>